<div class="pageContent">
	<form method="post" action="#{$smarty.const.ACT}#/admin/Book/book_modify/" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
	<input type="hidden" name="id" value="#{$one.id}#">
		<div class="pageFormContent" layoutH="56">
			<fieldset>
				<legend>基础信息：</legend>
			<p>
				<label>小说名称：</label>
				<input name="name" class="required" type="text" value="#{$one.name}#"/>
			</p>
			<p>
				<label>作者：</label>
				<input type="text" name="writer" class="required" value="#{$one.name}#">
			</p>
			<p>
				<label>分类：</label>
				<input name="type.id" type="hidden"  value="#{$one.typeid}#"/>
				<input class="required" name="type.typename" type="text" postField="keyword" suggestFields="typename" 
					suggestUrl="#{$smarty.const.ACT}#/admin/BookType/book_type_lookup/" lookupGroup="type" value="#{$one.typename}#"/>
			</p>
			<p>
				<label>小说封面：</label>
				<input type="text" name="bookimg.spath" value="#{$one.img}#">
				<a class="btnAttach" href="#{$smarty.const.ACT}#/Upload/upload_img/" lookupGroup="bookimg" width="560" height="300" title="附件">附件</a>
			</p>
			<p>
				<label>小说状态：</label>
				<input type="radio" name="overs" value="0" #{if $one.overs eq 0}# checked #{/if}#>连载中
				<input type="radio" name="overs" value="1" #{if $one.overs eq 1}# checked #{/if}#>已完结
			</p>
			<p>
				<label>审核状态：</label>
				<input type="radio" name="audit" value="0" #{if $one.audit eq 0}# checked #{/if}#>已审核
				<input type="radio" name="audit" value="1" #{if $one.audit eq 1}# checked #{/if}#>未审核
			</p>
			<div class="divider"></div>
				<fieldset>
					<legend>小说介绍：</legend>
						<dl class="nowrap">
							<dd><textarea name="intro" cols="100" rows="3" class="editor">#{$one.intro}#</textarea></dd>
						</dl>
				</fieldset>	
				<div class="divider"></div>
				<fieldset>
					<legend>优化参数：</legend>
						<p>
							<label>更新时间：</label>
							<input type="text" name="udt" class="date" dateFmt="yyyy-MM-dd HH:mm:ss" value="#{$one.udt}#"/>
				<a class="inputDateButton" href="javascript:;">选择</a>
						</p>
							<p>
								<label>推荐类型：</label>
								<input type="radio" name="istop"> 置顶
							</p>
						<p>
							<label>总点击：</label>
							<input type="text" name="click_a" class="digits" value="#{$one.click_a}#">
						</p>
						<p>
							<label>月点击：</label>
							<input type="text" name="click_m" class="digits" value="#{$one.click_m}#">
						</p>
						<p>
							<label>周点击：</label>
							<input type="text" name="click_w" class="digits" value="#{$one.click_w}#">
						</p>
						<p>
							<label>总推荐：</label>
							<input type="text" name="recom_a"  class="digits" value="#{$one.recom_a}#">
						</p>
						<p>
							<label>月推荐：</label>
							<input type="text" name="recomm_m" class="digits" value="#{$one.recom_m}#">
						</p>
						<p>
							<label>周推荐：</label>
							<input type="text" name="recom_w" class="digits" value="#{$one.recom_w}#">
						</p>
				</fieldset>	
			</fieldset>	
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
